package com.mm.cloth.model;

import java.io.Serializable;

public class Clothes implements Serializable {
    private int id;
    private String name;
    private String category;
    private String imageUrl;
    private String season;
    private String brand;
    private double price;
    private String purchaseDate;
    private String notes;
    private boolean autoMatting;
    private float x;
    private float y;
    private float scale = 1.0f;
    private String material;  // 材质
    private String style;     // 风格

    // 无参构造函数
    public Clothes() {
    }

    // 简单构造函数，用于列表显示
    public Clothes(int id, String name, String category, String imageUrl, String season) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.imageUrl = imageUrl;
        this.season = season;
    }

    // 完整构造函数
    public Clothes(int id, String name, String category, String imageUrl, String season, 
                  String brand, double price, String purchaseDate, String notes, boolean autoMatting) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.imageUrl = imageUrl;
        this.season = season;
        this.brand = brand;
        this.price = price;
        this.purchaseDate = purchaseDate;
        this.notes = notes;
        this.autoMatting = autoMatting;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getSeason() {
        return season;
    }

    public void setSeason(String season) {
        this.season = season;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public boolean isAutoMatting() {
        return autoMatting;
    }

    public void setAutoMatting(boolean autoMatting) {
        this.autoMatting = autoMatting;
    }
    
    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getScale() {
        return scale;
    }

    public void setScale(float scale) {
        this.scale = scale;
    }
    
    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }
} 